<?php 
	header("Content-type:text/html;charset=utf-8");
	
	$name = $_POST["name"];
	$pwd = $_POST["pwd"];
	// echo $name..$pwd;
	
	$conn = mysql_connect("localhost","root","root");
	mysql_select_db("anta");
	
	$result = mysql_query("select*from antauser where stu_id = $name AND stu_pwd = $pwd",$conn);
	
	if(mysql_num_rows($result) == 1){
		echo "0";
		//成功
	}else{
	
		echo "1";
	}
?>
